﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link type="text/css" href="http://a.tbcdn.cn/p/mytaobao/mytaobao_bc.css?t=20090714.css" rel="stylesheet">
    <link type="text/css" href="http://a.tbcdn.cn/apps/sell/1.0/goods_list_v1.1.css?t=20110809.css" rel="stylesheet">
    <link type="text/css" href="http://a.tbcdn.cn/??apps/sportalapps/global/1.0/seller-global-min.css,apps/mcdull/css/mcdull-header-min.css?t=20120702.css" rel="stylesheet">
    <script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            GetItemsOnsale();

            function GetItemsOnsale() {
                var title = "";
                var pageno = 1;

                $.ajax({
                    url: 'Ajax/ShowcaseHandler.ashx?act=GetItemsOnsale&title=' + title + '&pageno=' + pageno,
                    success: GetItemsOnsaleCallback,
                    error: function (a, b, c) {
                        alert(b);
                    }
                });

            }
            function GetItemsOnsaleCallback(data) {
                if (data.errcode) {
                    if (items.errcode == "27" || items.errcode == "26") {
                        alert("登录已过期");
                        window.location.href = "Login.aspx";
                        return;
                    }
                }

                for (var k in data.items) {
                    var item = data.items[k];
                    var tr = [
                        '<tr class="data-bd"><td><input type="checkbox" class="selector" name="productID" promoted="0" value="',
                        item.num_iid,
                        '"></td><td><a href="http://item.taobao.com/item.htm?id=',
                        item.num_iid,
                        '" title="" target="_blank><img src="',
                        item.pic_path,
                        '" width="50" alt=""></a></td><td class="desc"><a href="http://item.taobao.com/item.htm?id=',
                        item.num_iid,
                        '" target="_blank" title="">',
                        item.title,
                        '</a></td><td>',
                        item.detime,
                        '</td><td>',
                        item.price,
                        '</td><td>',
                        item.hasshowcase,
                        '</td></tr>'
                    ].join("");

                    $(tr).insertAfter($("#J_DataTable tbody:eq(1) tr:last"));
                }
            }
        });
    </script>
</head>
<body>
<div id="divJson"></div>
<div class="data-list data-list-auction">
    <div class="bd">
        <table id="J_DataTable">
            <colgroup>
                <col width="25">
                <col width="62">
                <col width="350">
                <col width="106">
                <col width="90">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>
                    </th>
                    <th>
                    </th>
                    <th>
                        宝贝名称
                    </th>
                    <th>
                        剩余时间
                    </th>
                    <th>
                        价格
                    </th>
                    <th>
                        当前状态
                    </th>
                </tr>
            </thead>
            <tbody class="act">
                <tr class="sep-row">
                    <td colspan="6">
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <div class="operations">
                            <input class="all-selector" type="checkbox"><label>全选</label>
                        </div>
                    </td>
                </tr>
            </tbody>
            <tbody class="data">
                <tr class="data-bd">
                    <td>
                        <input type="checkbox" class="selector" name="productID" promoted="0" value="15082942256">
                    </td>
                    <td>
                        <a href="http://item.taobao.com/item.htm?id=15082942256" title="" target="_blank">
                            <img id="imgItem" src=""
                                width="50" alt="">
                        </a>
                    </td>
                    <td class="desc">
                        <a href="#" target="_blank" title=""><label></label></a>
                    </td>
                    <td>
                        6天17时27分
                    </td>
                    <td>
                        0.10元
                    </td>
                    <td>
                        未推荐
                    </td>
                </tr>
            </tbody>
            <tbody class="act">
                <tr class="sep-row">
                    <td colspan="6">
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <div class="operations">
                            <input class="all-selector" type="checkbox"><label>全选</label>
                            <a href="javascript:submitAction('dopromoted')" title="" class="trigger">推 荐</a>
                            <a href="javascript:submitAction('doupromoted')" title="" class="trigger">取消推荐</a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <div class="operations">
                            <ul class="page-nav inline-block">
                                <li>共有1条记录 | </li>
                                <li class="prev-page"></li>
                                <li class="curr-page"><a href="#" class="selected" onclick="javascript:gotoPage('1')">
                                    1</a></li>
                                <li>到第<input name="pageNO" type="text" size="2" tabindex="200" onkeypress="return process_onkeyup()">页
                                    <input type="button" name="Submit22" value="确定" onclick="return gotoPage(ListForm.pageNO.value)"></li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </div>
</body>
</html>
